import camera from '../controller/three-camera'
import level1 from '../levels/level1/three-scene.js';
import {cubeRotation} from "./eventTick";
import * as THREE from "../../../../lib/three.js-r128/build/three.module";


const renderer = new THREE.WebGLRenderer();
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);

function animate() {
    requestAnimationFrame(animate);

    cubeRotation();

    renderer.render(level1, camera);
}

export {animate}
